module.exports = {
  baseUrl:process.env.NODE_ENV ==='production' ? './':'',
  productionSourceMap:process.env.NODE_ENV === 'production' ? false :true,
  transpileDependencies:[
    'sm-crypto','js-base64','crypto-js'
  ],
  configureWebpack: {
    resolve: {
      alias: {
        'assets': '@/assets',
        'api': '@/api',
        'libs': '@/libs',
        'module': '@/components',
        'views': '@/views',
        'src': '@/'
      }
    }
  },
  lintOnSave: false,
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true,
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: "http://172.17.17.211:9001/", //对应自己的接口
        secure:false,
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    },
    host:'192.0.10.26',
      port:'40011'
    // 此处开启 https
    //https: false
    // 此处开启 https
    //https: fals
  }
}